       <div class="form">
              <?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'worklog-form','htmlOptions'=>array('role'=>'form','class'=>'form-horizontal tasi-form'),
				// Please note: When you enable ajax validation, make sure the corresponding
				// controller action is handling ajax validation correctly.
				// There is a call to performAjaxValidation() commented in generated controller code.
				// See class documentation of CActiveForm for details on this.
				'enableAjaxValidation'=>false,
			)); ?>
<Br>
<Br>
	<p class="note">带 <span class="required">*</span>必填.</p>
	<div class="form-group">
		<?php echo $form->labelEx($model,'title'); ?>
		<div class="col-sm-10">
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255,'class'=>'form-control')); ?>
		<?php echo $form->error($model,'title'); ?>
		</div>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'persontype'); ?>
		<div class="col-sm-10">
		<?php echo $form->radioButtonList($model,'persontype',array('0'=>'汇报','1'=>'计划'),array('separator'=>'')); ?>
		<?php echo $form->error($model,'persontype'); ?>
		</div>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'publish'); ?>
		<div class="col-sm-10">
		<?php echo $form->textField($model,'publish',array('class'=>'form_datetime form-control', 'readonly'=>'true')); ?>

		<?php echo $form->error($model,'publish'); ?>
		</div>
	</div>


	<div class="form-group">
		<?php echo $form->labelEx($model,'description'); ?>
		<div class="col-sm-10">
		<?php
			$form->widget('ext.ueditor.UeditorWidget',
		            array(
		                'model' => $model,
		                'attribute' => 'description',
		                'htmlOptions' => array('rows'=>6, 'cols'=>50)
		    ));
		?>

		<?php echo $form->error($model,'description'); ?>
		</div>
	</div>



	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '提交' : '保存',array('class'=>'btn btn-success')); ?>
		<?php echo CHtml::link('<i class=\'icon-return\'></i> 取消', 'javascript:history.back();', array('class' => 'btn btn-default'));?>	</div>
<?php $this->endWidget(); ?>

<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl;?>/js/bootstrap-datetimepicker/css/datetimepicker.css" />

<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl;?>/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl;?>/js/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>

<script type="text/javascript">
$(function(){
	$(".form_datetime").datetimepicker(
		{format: 'yyyy-mm-dd hh:ii',
		autoclose:true,
		todayHighlight:true,
		language:'zh-CN',
		pickerPosition:'top-left',
	});

});
</script>
